from rest_framework import serializers
from .models import QaPair, ScenicSpot, Admin, DataTicket, Submitter


class ScenicSpotSerializer(serializers.ModelSerializer):
    class Meta:
        model = ScenicSpot
        fields = '__all__'

class QaPairSerializer(serializers.ModelSerializer):
    class Meta:
        model = QaPair
        fields = '__all__'

class ScenicSpotSerializer(serializers.ModelSerializer):
    class Meta:
        model = ScenicSpot
        fields = '__all__'

class AdminSerializer(serializers.ModelSerializer):
    class Meta:
        model = Admin
        fields = '__all__'

class DataTicketSerializer(serializers.ModelSerializer):
    class Meta:
        model = DataTicket
        fields = '__all__'


class SubmitterSerializer(serializers.ModelSerializer):
    class Meta:
        model = Submitter
        fields = '__all__'